package com.ephics.events
{
	import flash.events.Event;

	public class ScrollEvent extends Event
	{
		public static const SCROLL_UPDATE:String = "scrollUpdate";

		private var _percent:int;

		public function ScrollEvent(type:String, percent:int, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type,bubbles,cancelable);

			this._percent = percent;
		}

		public function get percent():int
		{
			return _percent;
		}

		public override function clone():Event
		{
			return new ScrollEvent(type,percent,bubbles,cancelable);
		}

		public override function toString():String
		{
			return formatToString("ScrollEvent","percent","bubbles","cancelable");
		}
	}
}